home *** CD-ROM | disk | FTP | other *** search
- Path: easy.in-chemnitz.de!mkmk!floh
- From: floh@mkmk.in-chemnitz.de (Andre Weissflog)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: WritePixelArray vs. ClipBlit vs. ...
- Message-ID: <sqoWx*NA0@mkmk.in-chemnitz.de>
- Date: Fri, 12 Jan 1996 02:21:16 CET
- Reply-To: floh@mkmk.in-chemnitz.de
- References: <oj6ka2yity1.fsf@hpsrk.fc.hp.com>
- Distribution: world
- Organization: private uucp site
- X-Newsreader: Arn V 1.04
-
- In article <oj6ka2yity1.fsf@hpsrk.fc.hp.com>, Steve Koren writes:
-
- >
- > A little experimentation revealed that on my (Z-II 040/25) graphics
- > card, WritePixelArray8 is about twice as fast as ClipBlit when both are
- > talking to a 256 color screen. No surprise there. ClipBlit is much
- > faster for the Amiga native gfx modes (again no surprise). And then we
- > have a CyberGfx call for dealing with truecolor modes that is better
- > than either of the above two if you have a truecolor screen, but doesn't
- > work on 8 bit screens at all.
- >
- > So now, I am writing a program, and I have the following choices:
- >
- [...]
- >
- > D) Do maximum work, optimize for each case:
- > -> Use ClipBlit on native screenmodes
- > -> Use WritePixelArray8 on CyberGfx 8 bit screenmodes
- > -> Use the CyberGfx call on truecolor 16/24 bit screenmodes
- >
- > This is annoying. Is there any way to do case D) easier than what I am
- > thinking?
- >
- I'm afraid not, except waiting for true RTG. As far as I understood
- it, RTG would provide automatic format conversion when blitting
- between any bitmap formats.
-
- So you could have your working area in 8 bit chunky with a local
- color map, and blit it onto a 24 bit screen, or work in 24 bit,
- and blit it to an 8 bit screen without need to worry about
- color remapping.
-
- > Also, if I have allocated a bitmap as a "friend bitmap" of a 8 bit
- > cybergfx mode, I would almost have expected ClipBlit to be as fast as
- > WritePixelArray8. But it isn't even close. Why not? In fact, I
- > haven't seen the friend bitmap to make any difference at all. I can use
- > it or not use it, and in both cases ClipBlit is slower than
- > WritePixelArray8.
- >
- The mysteries of gfx emulators ;-)
-
- I wouldn't necessarly expect that CyberGfx makes use of the
- friend bitmap arg at all. I guess, you get a ordinary planar bitmap,
- which is converted to CyberGfx private chunky format during
- bit blit. If CyberGfx would support friend bitmaps, one might
- expect to get a bitmap in an unknown format, somewhere in the
- hidden area of the gfx cards memory (so the card's blitter
- can directly access it).
-
- BTW, it could be worse. On my Merlin (latest emulator version
- though), WriteChunkyPixels() (didn't try WritePixelArray8())
- to a 256 color screen (which is clearly in chunky8 format)
- is so slow it takes about a second(!) to redraw a 320x200
- screen. I guess they convert my chunky8 array into planar
- format first, before reconverting that planar bitmap to
- the screens chunky8 bitmap :-/
-
- Bye,
- -Floh.
-
- ====//=== Andre Weissflog <floh@mkmk.in-chemnitz.de> =======
- ...// Sep'95: Return Of The Living Death...................
- \\// 90% of everything is crap (Sturgeon's Law)...........
- =\\===============================================Amiga!=
-
-